<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>添加动画</title>
  <meta name="description" content="一个充满童话世界的地方，带你回味童年." />
  <meta name="keywords" content="童话、英雄和魔法" />
  <link rel="shortcut icon" href="images/favicon.ico" />
  <!-- 引入我们自己的样式文件 -->
    <link href="css/content.css" type=text/css rel=stylesheet>
    <script>
        function check() {
            var a = document.getElementById("txt_Name6").value;
            var b = document.getElementById("txt_Name").value;
            var c = document.getElementById("pic").value;
            var d = document.getElementById("txt_Code").value;
            var e = document.getElementById("shipin").value;
            var f = document.getElementById("txt_Name1").value;
            var g = document.getElementById("txt_Code1").value;
            var h = document.getElementById("pic1").value;
            var i = document.getElementById("txt_Name2").value;
            var j = document.getElementById("txt_Code2").value;
            var k = document.getElementById("pic2").value;
            var l = document.getElementById("txt_Name3").value;
            var m = document.getElementById("txt_Code3").value;
            var n = document.getElementById("pic3").value;
            if (a === "" || b === "" || d === "" || f === "" || g === "" || i === "" || j === "" || l === "" || m === "") {
                alert("请将数据填写完整！");
                return false;
            }
            if (c.length === 0 || c === "" || e.length === 0 || e === "" || h.length === 0 || h === "" || k.length === 0 || k === "" || n.length === 0 || n === "") {
                alert("请选择文件！");
                return false;
            }
            return true;
        }
    </script>
</head>

<body>
<div style="padding-left:4px;">
    <table width="1200" border="0" cellpadding="0" cellspacing="0">
        <tr height="30">
            <td width="270" background="images/title01.jpg" class="title">&gt;&gt;动画管理</td>
            <td width="30"><img src="images/title002.gif"/></td>
            <td width="534" bgcolor="#d9f0ff" class="txt">您的位置：后台管理 &gt; 动画管理 &gt; 动画信息</td>
        </tr>
    </table>
    <br/>
    <h3>添加动画</h3>
    <form action="${pageContext.request.contextPath}/addanimation" method="post" enctype="multipart/form-data"
          onsubmit="return check();">
        <table width="550" cellpadding="0" cellspacing="0" style="line-height:40px">
            <tr>
                <td align="right">动画编号：</td>
                <td><input name="anim_bianhao" type="text" id="txt_Name6" value=""/>
                    *
                </td>
            </tr>
            <tr>
                <td width="177" align="right">动画名称：</td>
                <td width="347"><input name="anim_name" type="text" id="txt_Name" value=""/>
                    *
                </td>
            </tr>
            <tr>
                <td align="right">动画封面：</td>
                <td width="347"><input name="pic" type="file" id="pic" value=""/>
                    *
                </td>
            </tr>
            <tr>
                <td align="right">动画介绍：</td>
                <td><textarea name="anim_jieshao" id="txt_Code"></textarea>
                    *
                </td>
            </tr>
            <tr>
                <td align="right">动画视频：</td>
                <td width="347"><input name="shipin" type="file" id="shipin" value=""/>
                    *
                </td>
            </tr>
            <tr>
                <td align="right">角色名称1：</td>
                <td><input name="anim_j1_name" type="text" id="txt_Name1" value=""/>
                    *
                </td>
            </tr>
            <tr>
                <td align="right">角色介绍1：</td>
                <td><textarea name="anim_j1_jieshao" id="txt_Code1"></textarea>
                    *
                </td>
            </tr>
            <tr>
                <td align="right">角色1图片：</td>
                <td width="347"><input name="pic1" type="file" id="pic1" value=""/>
                    *
                </td>
            </tr>
            <tr>
                <td align="right">角色名称2：</td>
                <td><input name="anim_j2_name" type="text" id="txt_Name2" value=""/>
                    *
                </td>
            </tr>
            <tr>
                <td align="right">角色介绍2：</td>
                <td><textarea name="anim_j2_jieshao" id="txt_Code2"></textarea>
                    *
                </td>
            </tr>
            <tr>
                <td align="right">角色2图片：</td>
                <td width="347"><input name="pic2" type="file" id="pic2" value=""/>
                    *
                </td>
            </tr>
            <tr>
                <td align="right">角色名称3：</td>
                <td><input name="anim_j3_name" type="text" id="txt_Name3" value=""/>
                    *
                </td>
            </tr>
            <tr>
                <td align="right">角色介绍3：</td>
                <td><textarea name="anim_j3_jieshao" id="txt_Code3"></textarea>
                </td>
            </tr>
            <tr>
                <td align="right">角色3图片：</td>
                <td width="347"><input name="pic3" type="file" id="pic3" value=""/>
                    *
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>
                    <input id="btn_Save" value="保存" type="submit"/>
                    <input value="重置" type="reset" name="clear"/>
                    &nbsp;
                </td>
            </tr>
        </table>
    </form>
</div>
</body>

</html>